{extend name='admin@main'}

{block name="button"}

{if auth("admin/user/del")}
<button data-action='{:url("del")}' data-rule="id#{key}" data-csrf="{:systoken('admin/user/del')}" data-confirm="确定要删除这些用户吗？" class='layui-btn layui-btn-sm layui-btn-primary'>删除用户</button>
{/if}

{/block}

{block name="content"}
<table class="layui-table" lay-skin="line">
    <caption class="margin-bottom-10 text-left">{include file='schoolmaster/index_search'}</caption>
    {notempty name='list'}
    <thead>
    <tr>
        <th class='list-table-check-td think-checkbox'>
            <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
        </th>
        <th class='text-left nowrap' >昵 称</th>
        <!--<th class='text-left nowrap' >收益(元)</th>-->
        <th class='text-left nowrap' >手机号</th>
        <th class='text-left nowrap' >创建时间</th>
        <th class='text-left nowrap' >真实姓名</th>
        <th class='text-left nowrap' >操作</th>
    </tr>
    </thead>
    {/notempty}
    <tbody>
    {foreach $list as $key=>$vo}
    <tr data-dbclick>
        <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
        <td class='text-left nowrap'>
<!--            <img class="circle-image" src="{$vo.avatar|default=''}" data-tips-image > <br/>-->
            {$vo.nickname|default=''}
        </td>
        <!--<td class='text-left nowrap'>{$vo.poster_paylog_total|default='0.00'}</td>-->
        <td class='text-left nowrap'>{$vo.phone|default=''}</td>
        <td class='text-left nowrap'>{$vo.create_time|default=''}</td>
        <td class='text-left nowrap'>{$vo.realname|default=''}</td>
        <td class='text-left nowrap'>
            <a  class="layui-btn layui-btn-sm layui-btn-primary" data-open='{:url("detail")}?id={$vo.id}'>详 情</a>
            <a class="layui-btn layui-btn-sm layui-btn-normal" data-title="编辑" data-modal='{:url("set_realname")}?id={$vo.id}'>设置真实姓名</a>
        </td>
    </tr>
    {/foreach}
    </tbody>
</table>

{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

{/block}